/* const{http}=require("../../utils/http")
Page({
    data: {
        pic:"",
        slogo:"",
        title:""
    },
    onLoad: function (options) {
        // console.log(options)
        var {id}=options;
        var url=`http://47.108.197.28:4000/api/movieDetail?id=${id}`;
        http({
            url,
            success:res=>{
                console.log(res.data.res[0])
                var{pic,slogo,title}=res.data.res[0]
                this.setData({
                    pic,slogo,title
                })
            }
        })
    }

    
}) */


const {getMovieDetailHttp} =  require("../../utils/http")
Page({
    data: {

    },
    onLoad: function (options) {
        console.log(options)
        var {id}=options;
        getMovieDetailHttp(id).then(res=>{
            console.log(res)
        })
    }
})